package com.timebank.score.service;

import com.timebank.common.core.web.pojo.AjaxResult;
import com.timebank.score.pojo.entity.ScoreTask;
import com.timebank.score.pojo.vo.ScoreTaskVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 积分任务 接口类
 * @author shiliuyinzhen
 */
@Service
public interface ScoreTaskService {

    /**
     * 新增积分任务
     * @param scoreTask
     * @return
     */
    AjaxResult addScoreTask(ScoreTask scoreTask);

    /**
     * 修改积分任务
     * @param scoreTask
     * @return
     */
    AjaxResult updateScoreTask(ScoreTask scoreTask);

    /**
     * 查询积分任务列表
     *
     * @param scoreTask
     * @return
     */
    List<ScoreTaskVO> getScoreTaskList(ScoreTask scoreTask);

    /**
     * 批量删除积分任务
     * @param taskIds
     * @return
     */
    AjaxResult batchDeleteScoreTask(Long[] taskIds);

    /**
     * 批量领取积分任务奖励
     * @param taskIds
     * @return
     */
    AjaxResult batchGetRewards(Long[] taskIds);
}
